package org.carl.actor;

import akka.actor.Props;
import org.carl.akka.base.BaseAkkaActor;

public class AActor extends BaseAkkaActor {


    public static Props props() {
        return Props.create(AActor.class);
    }

    @Override
    public Receive createReceive() {
        return receiveBuilder().match(String.class, s -> {
            System.out.println(this.getClass() + " receive message:" + s);
        }).build();
    }
}
